<?
function para_top_menu( $cur_sec ) {
    $top_sections = array(
        'forum'    => 'Forum',
        'linkroll' => 'Linkrullen',
        'articles' => 'Artikler'
        );

    echo "<div id=\"para_topmenu\">";
    foreach( $top_sections as $sec => $label ) {
        if($sec == $cur_sec) {
            echo "<span class=\"hilite\">";
            echo "<a class=\"para_topmenu_link\" href=\"?sec=$sec\">$label</a>";
            echo "</span>\n";
        }
        else {
            echo "<span class=\"item\">";
            echo "<a class=\"para_topmenu_link\" href=\"?sec=$sec\">$label</a>";
            echo "</span>\n";
        }
    }
    echo "</div>\n";
}


para_top_menu( $sec );

?>